package com.huilian.iotbox.data.dto;

import com.huilian.iotbox.data.vo.UserInfo;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 谢洛涛
 * @date 2021/7/12 17:57
 */
@Data
public class OrderRefundDto implements Serializable {
    private static final long serialVersionUID = -8063416651614466872L;
    private Integer id;

    /**
     * 交易单号Id
     */
    private Long orderId;
    /**
     * 支付完成订单Id 原支付订单Id
     */
    private Long payOrderId;
    /**
     * 退款单号
     */
    private String outRefundNo;
    /**
     * 退款金额
     */
    private BigDecimal refundAmount;
    /**
     * 退款原因
     */
    private String refundReason;

    /**
     * 退款订单号
     */
    private String refundOrderNo;

    /**
     * 退款状态 0退款中 1成功 2失败
     */
    private Integer refundStatus;

    /**
     * 订单支付余额
     */
    private BigDecimal balance;

    /**
     * 退款原因
     */
    private String failReason;
    /**
     * 退款操作员
     */
    private String operatorId;

    /**
     * device_plugin表serialNumber字段
     */
    private String deviceNo;

    /**
     * 退款ip地址
     */
    private String ip;

    /**
     * 渠道号
     */
    private String merchantId;

    /**
     * 退款完成时间
     */
    private Date gmtRefundment;

    private String outTradeNo;

    private String payCompanyCode;

    private String tradeStatus;

    private String operatePassword;

    private UserInfo userInfo;

    private Boolean returnOfGoods;
    /**
     * 支付时间
     */
    private Date gmtPayment;
}
